package pack2;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main2PLS2 {

	
public static void main (String[] args)throws Exception{
		
		String file = "data3.txt";
		List<PLS>l = new ArrayList<PLS>();
		
		PLSMethods.loadData(l, file);
		
		Map<String, List<PLS>>map = new HashMap<String, List<PLS>>();
		
		for (int i = 0; i < l.size(); i++) {
			
			String hash = l.get(i).h;
			System.out.println(hash);
			long mintime = 600000;
			List<PLS>list = PLSMethods.pls_Users(hash, mintime);
			
			map.put(hash, list);
		}
		
		PLSMethods.print("3pls3.txt",map);
	}
}
